package com.qingfeng.activiti.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qingfeng.activiti.mapper.NodesettingMapper;
import com.qingfeng.activiti.service.INodesettingService;
import com.qingfeng.entity.QueryRequest;
import com.qingfeng.entity.activiti.Nodesetting;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


/**
 * @ProjectName NodesettingServiceImpl
 * @author Administrator
 * @version 1.0.0
 * @Description 流程节点设置
 * @createTime 2021/9/11 0011 18:27
 */
@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class NodesettingServiceImpl extends ServiceImpl<NodesettingMapper, Nodesetting> implements INodesettingService {

    /**
     * @title findListPage
     * @description 查询数据分页列表
     * @author Administrator
     * @updateTime 2022/12/22 0022 21:48
     */
    public IPage<Nodesetting> findListPage(Nodesetting nodesetting, QueryRequest request){
        Page<Nodesetting> page = new Page<>(request.getPageNum(), request.getPageSize());
        return this.baseMapper.findListPage(page, nodesetting);
    }


}